﻿
<%@ Page Language="C#" MasterPageFile="~/Principal.master" AutoEventWireup="true" CodeFile="cambiarCondicion.aspx.cs" Inherits="inscripcionCurso" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PageContent" Runat="Server">

    <div>
    <table style="width: 616px; height: 172px">
    <div ></div>
    <div id="divAbajo"></div>
    <div>
    <asp:Label ID="Label1" runat="server" Text="Ingrese id Curso"></asp:Label>
    <asp:TextBox ID="txtIdCurso" runat="server"></asp:TextBox>
        <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Ver" />
        <asp:GridView ID="grdCursos" runat="server" AutoGenerateColumns="False" DataSourceID="ObCursos">
            <Columns>
                <asp:BoundField DataField="IdCurso" HeaderText="IdCurso" SortExpression="IdCurso" />
                <asp:BoundField DataField="Comision" HeaderText="Comision" SortExpression="Comision" />
                <asp:BoundField DataField="Materia" HeaderText="Materia" SortExpression="Materia" />
                <asp:BoundField DataField="Anio" HeaderText="Anio" SortExpression="Anio" />
            </Columns>
        </asp:GridView>
        <asp:ObjectDataSource ID="ObCursos" runat="server" SelectMethod="DevolverCursos"
            TypeName="Datos.Curso"></asp:ObjectDataSource>
        <hr />
    
    <asp:GridView ID="grdAlumnoInscripcion" runat="server" AutoGenerateColumns="False" DataSourceID="ObjectDataSource1" OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
        <Columns>
            <asp:BoundField DataField="IdAlumno" HeaderText="IdAlumno" SortExpression="IdAlumno" />
            <asp:BoundField DataField="IdCurso" HeaderText="IdCurso" SortExpression="IdCurso" />
            <asp:BoundField DataField="Condicion" HeaderText="Condicion" SortExpression="Condicion" />
        </Columns>
    </asp:GridView>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="DevolverAlumnos" TypeName="Datos.AlumnoInscripcion" OnSelecting="ObjectDataSource1_Selecting">
        <SelectParameters>
            <asp:ControlParameter ControlID="txtIdCurso" Name="id" PropertyName="Text" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
        
    </table>
    </div>

</asp:Content>